Silk Mobile provides monitoring infrastructure. The monitors can run during your test execution, and as your tests are being executed the monitors will collect data from the device.
The current supported monitors are:
Memory: Bytes
CPU: percentage
Battery: percentage
This feature is supported on Android, iOS and Windows Phone devices.
This feature works only on prepared applications (Instrumented)
This feature works during the test only when the prepared application is open.
Here are the monitor-related commands:
GetCounter: will retrieve the value of the requested monitor (it will run once).
StartMonitor: will start monitoring the requested monitor during the test. The monitor will start collecting data every 30 seconds.
GetMonitorData: return the content of the monitor’s values as a string in CSV format.
SetMonitorTestState: Add Step Info in the generated CSV file (which is created using the GetMonitorsData )
SetMonitorPollingInterval : sets the intervals between each polling of the StartMonitor command.
The report's command title will include the monitored data information:
At the end of the report you will find a link to a data file (CSV) that contains all the monitored information: